<?php

/**
 *
 * @author MARIA
 * 
 */
require_once('Zend/Sql/Adapter/Standard/Expression/Abstract.php');

abstract class Zend_Sql_Adapter_Standard_Expression_Logical_Abstract 
	extends Zend_Sql_Adapter_Standard_Expression_Abstract
{
	/**
	 * @var Zend_Sql_Adapter_Standard_Expression_Abstract
	 */
	protected $operand;
	/**
	 * @var String enum('=', '<', '<=', '>=', '>', '&', '&&', '|', '||', '^') 
	 */
	protected $operator;
	/**
	 * @var Zend_Sql_Adapter_Standard_Expression_Abstract
	 */
	protected $argument;
	
	public function __construct($operand=null, $argument=null) {
		$this->operand = $operand;
		$this->argument = $argument;
	}
	public function getOperator() {
		return $this->operator;
	}
	public function setOperand($expression) {
		$this->operand = $expression;
	}
	public function setArgument($expression) {
		$this->argument = $expression;
	}
	
	
	public function toString() {
		return implode(' + ', $this->argument);
		return $this->operand->toString() . ' ' . $this->operator . ' ' . $this->argument->toString();
	}
}
